setAudioAttributes(softbuffer=250, hardbuffer=500)
setGlobalDuration(-1)

example = 1

inputMic(channel=2, out=1)

if example == 1:
    sine(pitch=500, amplitude=1, out=2)
    ringMod(1,2)

elif example == 2:
    sine(pitch=[random.randint(100,3000) for i in range(50)], amplitude=.1, out=2)
    crossSynth(in1=2, in2=1)

elif example == 3:
    resonator(input=1, pitch=[50,100.05,149,201,252], amplitude=.01)

startCsound()